package com.hornsun.domain.dbo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InformationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InformationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInformationGuidIsNull() {
            addCriterion("information_guid is null");
            return (Criteria) this;
        }

        public Criteria andInformationGuidIsNotNull() {
            addCriterion("information_guid is not null");
            return (Criteria) this;
        }

        public Criteria andInformationGuidEqualTo(String value) {
            addCriterion("information_guid =", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidNotEqualTo(String value) {
            addCriterion("information_guid <>", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidGreaterThan(String value) {
            addCriterion("information_guid >", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidGreaterThanOrEqualTo(String value) {
            addCriterion("information_guid >=", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidLessThan(String value) {
            addCriterion("information_guid <", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidLessThanOrEqualTo(String value) {
            addCriterion("information_guid <=", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidLike(String value) {
            addCriterion("information_guid like", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidNotLike(String value) {
            addCriterion("information_guid not like", value, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidIn(List<String> values) {
            addCriterion("information_guid in", values, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidNotIn(List<String> values) {
            addCriterion("information_guid not in", values, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidBetween(String value1, String value2) {
            addCriterion("information_guid between", value1, value2, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andInformationGuidNotBetween(String value1, String value2) {
            addCriterion("information_guid not between", value1, value2, "informationGuid");
            return (Criteria) this;
        }

        public Criteria andTypeidIsNull() {
            addCriterion("typeid is null");
            return (Criteria) this;
        }

        public Criteria andTypeidIsNotNull() {
            addCriterion("typeid is not null");
            return (Criteria) this;
        }

        public Criteria andTypeidEqualTo(String value) {
            addCriterion("typeid =", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotEqualTo(String value) {
            addCriterion("typeid <>", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidGreaterThan(String value) {
            addCriterion("typeid >", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidGreaterThanOrEqualTo(String value) {
            addCriterion("typeid >=", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidLessThan(String value) {
            addCriterion("typeid <", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidLessThanOrEqualTo(String value) {
            addCriterion("typeid <=", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidLike(String value) {
            addCriterion("typeid like", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotLike(String value) {
            addCriterion("typeid not like", value, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidIn(List<String> values) {
            addCriterion("typeid in", values, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotIn(List<String> values) {
            addCriterion("typeid not in", values, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidBetween(String value1, String value2) {
            addCriterion("typeid between", value1, value2, "typeid");
            return (Criteria) this;
        }

        public Criteria andTypeidNotBetween(String value1, String value2) {
            addCriterion("typeid not between", value1, value2, "typeid");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andImageIsNull() {
            addCriterion("image is null");
            return (Criteria) this;
        }

        public Criteria andImageIsNotNull() {
            addCriterion("image is not null");
            return (Criteria) this;
        }

        public Criteria andImageEqualTo(String value) {
            addCriterion("image =", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotEqualTo(String value) {
            addCriterion("image <>", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThan(String value) {
            addCriterion("image >", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageGreaterThanOrEqualTo(String value) {
            addCriterion("image >=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThan(String value) {
            addCriterion("image <", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLessThanOrEqualTo(String value) {
            addCriterion("image <=", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageLike(String value) {
            addCriterion("image like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotLike(String value) {
            addCriterion("image not like", value, "image");
            return (Criteria) this;
        }

        public Criteria andImageIn(List<String> values) {
            addCriterion("image in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotIn(List<String> values) {
            addCriterion("image not in", values, "image");
            return (Criteria) this;
        }

        public Criteria andImageBetween(String value1, String value2) {
            addCriterion("image between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andImageNotBetween(String value1, String value2) {
            addCriterion("image not between", value1, value2, "image");
            return (Criteria) this;
        }

        public Criteria andHitsIsNull() {
            addCriterion("hits is null");
            return (Criteria) this;
        }

        public Criteria andHitsIsNotNull() {
            addCriterion("hits is not null");
            return (Criteria) this;
        }

        public Criteria andHitsEqualTo(Integer value) {
            addCriterion("hits =", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotEqualTo(Integer value) {
            addCriterion("hits <>", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThan(Integer value) {
            addCriterion("hits >", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsGreaterThanOrEqualTo(Integer value) {
            addCriterion("hits >=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThan(Integer value) {
            addCriterion("hits <", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsLessThanOrEqualTo(Integer value) {
            addCriterion("hits <=", value, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsIn(List<Integer> values) {
            addCriterion("hits in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotIn(List<Integer> values) {
            addCriterion("hits not in", values, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsBetween(Integer value1, Integer value2) {
            addCriterion("hits between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andHitsNotBetween(Integer value1, Integer value2) {
            addCriterion("hits not between", value1, value2, "hits");
            return (Criteria) this;
        }

        public Criteria andPraiseIsNull() {
            addCriterion("praise is null");
            return (Criteria) this;
        }

        public Criteria andPraiseIsNotNull() {
            addCriterion("praise is not null");
            return (Criteria) this;
        }

        public Criteria andPraiseEqualTo(Integer value) {
            addCriterion("praise =", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseNotEqualTo(Integer value) {
            addCriterion("praise <>", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseGreaterThan(Integer value) {
            addCriterion("praise >", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseGreaterThanOrEqualTo(Integer value) {
            addCriterion("praise >=", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseLessThan(Integer value) {
            addCriterion("praise <", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseLessThanOrEqualTo(Integer value) {
            addCriterion("praise <=", value, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseIn(List<Integer> values) {
            addCriterion("praise in", values, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseNotIn(List<Integer> values) {
            addCriterion("praise not in", values, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseBetween(Integer value1, Integer value2) {
            addCriterion("praise between", value1, value2, "praise");
            return (Criteria) this;
        }

        public Criteria andPraiseNotBetween(Integer value1, Integer value2) {
            addCriterion("praise not between", value1, value2, "praise");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(String value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(String value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(String value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(String value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(String value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLike(String value) {
            addCriterion("content like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotLike(String value) {
            addCriterion("content not like", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<String> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<String> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(String value1, String value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(String value1, String value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNull() {
            addCriterion("recommend is null");
            return (Criteria) this;
        }

        public Criteria andRecommendIsNotNull() {
            addCriterion("recommend is not null");
            return (Criteria) this;
        }

        public Criteria andRecommendEqualTo(Byte value) {
            addCriterion("recommend =", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotEqualTo(Byte value) {
            addCriterion("recommend <>", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThan(Byte value) {
            addCriterion("recommend >", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendGreaterThanOrEqualTo(Byte value) {
            addCriterion("recommend >=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThan(Byte value) {
            addCriterion("recommend <", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendLessThanOrEqualTo(Byte value) {
            addCriterion("recommend <=", value, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendIn(List<Byte> values) {
            addCriterion("recommend in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotIn(List<Byte> values) {
            addCriterion("recommend not in", values, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendBetween(Byte value1, Byte value2) {
            addCriterion("recommend between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andRecommendNotBetween(Byte value1, Byte value2) {
            addCriterion("recommend not between", value1, value2, "recommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendIsNull() {
            addCriterion("homepang_recommend is null");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendIsNotNull() {
            addCriterion("homepang_recommend is not null");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendEqualTo(Byte value) {
            addCriterion("homepang_recommend =", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendNotEqualTo(Byte value) {
            addCriterion("homepang_recommend <>", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendGreaterThan(Byte value) {
            addCriterion("homepang_recommend >", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendGreaterThanOrEqualTo(Byte value) {
            addCriterion("homepang_recommend >=", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendLessThan(Byte value) {
            addCriterion("homepang_recommend <", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendLessThanOrEqualTo(Byte value) {
            addCriterion("homepang_recommend <=", value, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendIn(List<Byte> values) {
            addCriterion("homepang_recommend in", values, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendNotIn(List<Byte> values) {
            addCriterion("homepang_recommend not in", values, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendBetween(Byte value1, Byte value2) {
            addCriterion("homepang_recommend between", value1, value2, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andHomepangRecommendNotBetween(Byte value1, Byte value2) {
            addCriterion("homepang_recommend not between", value1, value2, "homepangRecommend");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andDetailImageIsNull() {
            addCriterion("detail_image is null");
            return (Criteria) this;
        }

        public Criteria andDetailImageIsNotNull() {
            addCriterion("detail_image is not null");
            return (Criteria) this;
        }

        public Criteria andDetailImageEqualTo(String value) {
            addCriterion("detail_image =", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageNotEqualTo(String value) {
            addCriterion("detail_image <>", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageGreaterThan(String value) {
            addCriterion("detail_image >", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageGreaterThanOrEqualTo(String value) {
            addCriterion("detail_image >=", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageLessThan(String value) {
            addCriterion("detail_image <", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageLessThanOrEqualTo(String value) {
            addCriterion("detail_image <=", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageLike(String value) {
            addCriterion("detail_image like", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageNotLike(String value) {
            addCriterion("detail_image not like", value, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageIn(List<String> values) {
            addCriterion("detail_image in", values, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageNotIn(List<String> values) {
            addCriterion("detail_image not in", values, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageBetween(String value1, String value2) {
            addCriterion("detail_image between", value1, value2, "detailImage");
            return (Criteria) this;
        }

        public Criteria andDetailImageNotBetween(String value1, String value2) {
            addCriterion("detail_image not between", value1, value2, "detailImage");
            return (Criteria) this;
        }

        public Criteria andFavouriteIsNull() {
            addCriterion("favourite is null");
            return (Criteria) this;
        }

        public Criteria andFavouriteIsNotNull() {
            addCriterion("favourite is not null");
            return (Criteria) this;
        }

        public Criteria andFavouriteEqualTo(Integer value) {
            addCriterion("favourite =", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteNotEqualTo(Integer value) {
            addCriterion("favourite <>", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteGreaterThan(Integer value) {
            addCriterion("favourite >", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteGreaterThanOrEqualTo(Integer value) {
            addCriterion("favourite >=", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteLessThan(Integer value) {
            addCriterion("favourite <", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteLessThanOrEqualTo(Integer value) {
            addCriterion("favourite <=", value, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteIn(List<Integer> values) {
            addCriterion("favourite in", values, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteNotIn(List<Integer> values) {
            addCriterion("favourite not in", values, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteBetween(Integer value1, Integer value2) {
            addCriterion("favourite between", value1, value2, "favourite");
            return (Criteria) this;
        }

        public Criteria andFavouriteNotBetween(Integer value1, Integer value2) {
            addCriterion("favourite not between", value1, value2, "favourite");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}